package com.woniuxy.usermodel.form;

import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class UserRegisterForm {

    @NotBlank(message = "账号不为空")
    private String userAccount;
    @NotBlank(message = "密码不为空")
    private String userPass;
    @Pattern(regexp = "^1[3-9]\\d{9}$",message = "手机号格式有误")
    private String userPhone;
    @NotBlank(message = "验证码不为空")
    private String code;//验证码
}
